package com.codegeek.project.slope.domain;

import com.codegeek.common.utils.ReplaceIllegalChar;
import com.codegeek.framework.aspectj.lang.annotation.Excel;
import lombok.Data;

/**
 * @author
 */
@Data
public class SlopeDataReport {

    /**
     * 序号
     */
    @Excel(name = "序号")
    private Long id;

    /**
     * 监测内容
     */
    @Excel(name = "监测内容")
    private String content;

    /**
     * 测点名称
     */
    @Excel(name = "测点名称")
    private String measuringName;

    /**
     * 传感器类型
     */
    @Excel(name = "传感器类型")
    private String equipmentType;

    /**
     * 设备名称
     */
    @Excel(name = "传感器名称")
    private String equipmentName;

    /**
     * 测项
     */
    @Excel(name = "监测项")
    private String project;

    /**
     * 坐标位置
     */
    @Excel(name = "坐标位置")
    private String site;

    /**
     * 工作状态
     */
    @Excel(name = "工作状态")
    private String status;

    /** 时间 */
//    @Excel(name = "时间",dateFormat="yyyy-MM-dd HH:mm:ss")
//    private Date datetime;

    /**
     * 当前监测值
     **/
    @Excel(name = "当前监测值")
    private String detectionValue;

    /**
     * 历史数据
     **/
    @Excel(name = "历史数据")
    private String itemValueArr;

    public void setContent(String content) {
        this.content = new ReplaceIllegalChar().replace(content);
    }

    public void setMeasuringName(String measuringName) {
        this.measuringName = new ReplaceIllegalChar().replace(measuringName);
    }

    public void setEquipmentType(String equipmentType) {
        this.equipmentType = new ReplaceIllegalChar().replace(equipmentType);
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = new ReplaceIllegalChar().replace(equipmentName);
    }

    public void setProject(String project) {
        this.project = new ReplaceIllegalChar().replace(project);
    }

    public void setSite(String site) {
        this.site = new ReplaceIllegalChar().replace(site);
    }

    public void setStatus(String status) {
        this.status = new ReplaceIllegalChar().replace(status);
    }

    public void setDetectionValue(String detectionValue) {
        this.detectionValue = new ReplaceIllegalChar().replace(detectionValue);
    }

    public void setItemValueArr(String itemValueArr) {
        this.itemValueArr = new ReplaceIllegalChar().replace(itemValueArr);
    }
}
